package com.web.domain.dataTable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 * @author xukk
 * @date 2017/6/26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Columns {
    private Integer draw;


    private Integer start;


    private Integer length;


    private Map<Search, String> search = new HashMap<Search, String>();


    private List<Map<Order, String>> order = new ArrayList<Map<Order, String>>();


    private List<Map<Column, String>> columns = new ArrayList<Map<Column, String>>();



    public enum Search {
        value, regex
    }


    public enum Order {
        column, dir
    }


    public enum Column {
        data, name, searchable, orderable, searchValue, searchRegex
    }
}
